package com.activity;

import com.render.GLRender;
import com.render.GlRenderWEN;
import com.render.GlRenderer;
import com.render.GlRendererRect;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.opengl.GLSurfaceView;
import android.opengl.GLSurfaceView.Renderer;
import android.os.Bundle;

public class ActivityTest extends Activity {
	/** Called when the activity is first created. */
	private Renderer renderer;
	public static Activity instance;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		instance = this;
		renderer = new GlRenderWEN();
		GLSurfaceView glView = new GLSurfaceView(this);
		glView.setRenderer(renderer);

		setContentView(glView);
	}

	public static Bitmap getBitmap() {
		return BitmapFactory.decodeResource(
				ActivityTest.instance.getResources(), R.drawable.ic_launcher);
	}
}